package com.go.where.family.service.impl;

import java.util.UUID;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.CustomerFeedbackDao;
import com.go.where.family.pojo.CustomerFeedbackInfo;
import com.go.where.family.service.CustomerFeedbackService;

@Service("customerFeedbackService")
public class CustomerFeedbackServiceImpl implements CustomerFeedbackService {

	@Resource(name = "customerFeedbackDao")
	private CustomerFeedbackDao customerFeedbackDao;

	@Override
	public int save(CustomerFeedbackInfo customerFeedbackInfo) {
		customerFeedbackInfo.setId(UUID.randomUUID().toString());
		return customerFeedbackDao.insert(customerFeedbackInfo);
	}

}
